package com.dong.ui.view;

import com.dong.ui.constant.RouterConst;
import com.dong.ui.util.FontUtils;
import com.dong.ui.util.RouterUtils;
import com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel;

import javax.swing.*;

/**
 * @description:
 * @author: 陈瑞东
 * @create: 2021-08-25 10:50
 */
public class Main {

    public void run() {
        try {
            // 配置文件
            FontUtils.setUIFont();
            UIManager.setLookAndFeel(WindowsClassicLookAndFeel.class.getName());
//            RouterUtils.router(RouterConst.VIEW_REG);
            RouterUtils.router(RouterConst.VIEW_LOGIN);
//            RouterUtils.router(RouterConst.VIEW_HOME);
//            RouterUtils.router(RouterConst.VIEW_ADDFOOD);
//            RouterUtils.router(RouterConst.VIEW_FOODDETAIL);
//            RouterUtils.router(RouterConst.VIEW_FOODLOG);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
